package cn.juque.systemservice.entity;

import cn.juque.systemservice.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * SYS_GEN_INFO表的entity
 *
 * @author JUQUE
 * @version 1.0.0
 * <li>simple-generator</li>
 * <li></li>
 * @date 2020-04-01 19:52:40
 **/
@Data
@TableName(value = "SYS_GEN_INFO")
public class GenInfo extends BaseEntity {

    /**
     * 自定义主键ID
     */
    @TableId(value = "GEN_ID", type = IdType.ASSIGN_UUID)
    private String genId;

    /**
     * 主键前缀
     */
    @TableField(value = "GEN_PREFIX")
    private String genPrefix;

    /**
     * 生命周期0:永久；1:一天
     */
    @TableField(value = "LIFE_CYCLE")
    private Integer lifeCycle;

    /**
     * 预缓存数量
     */
    @TableField(value = "RELOAD_COUNT")
    private Long reloadCount;

    /**
     * 告警百分比
     */
    @TableField(value = "DANGER_POINT")
    private Double dangerPoint;

    /**
     * 预加载标识，0-未加载；1-加载中
     */
    @TableField(value = "RELOAD_FLAG")
    private Integer reloadFlag;

    /**
     * 日期格式
     */
    @TableField(value = "DATE_FORMAT")
    private String dateFormat;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_USER_ID", fill = FieldFill.INSERT)
    private String createUserId;

    /**
     * 创建日期
     */
    @TableField(value = "CREATE_DATE", fill = FieldFill.INSERT)
    private String createDate;

    /**
     * 创建机构id
     */
    @TableField(value = "CREATE_ORG_ID", fill = FieldFill.INSERT)
    private String createOrgId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人id
     */
    @TableField(value = "UPDATE_USER_ID", fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    /**
     * 更新日期
     */
    @TableField(value = "UPDATE_DATE", fill = FieldFill.INSERT_UPDATE)
    private String updateDate;

    /**
     * 更新机构id
     */
    @TableField(value = "UPDATE_ORG_ID", fill = FieldFill.INSERT_UPDATE)
    private String updateOrgId;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
